package com.longxiao.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.longxiao.entity.TeacherLecture;
import com.longxiao.vo.TchUserVo;
import com.longxiao.vo.UpdateTchRate;

public interface TeacherLectureMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(TeacherLecture record);

    int insertSelective(TeacherLecture record);

    TeacherLecture selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TeacherLecture record);

    int updateByPrimaryKey(TeacherLecture record);

    /*
    *根据用户ID查询
    */
    TeacherLecture selectByUserId(String tchId);

    /*
    *更新老师费率
    */
    int updateRate(UpdateTchRate updateTchRate);
    
    List<TchUserVo> getTchUserVoList(@Param("cond")TchUserVo cond,@Param("offset")int offset, @Param("rows")int rows);
    
    Integer countTchUserVoList(@Param("cond")TchUserVo cond);
}